flatpak:demo:
variables:
- APPID: org.gtk.Demo
+ APPID: org.gtk.Demo4
<<: *flatpak-defaults
flatpak:widget-factory:
+++ /dev/null
-{
- "app-id": "org.gtk.Demo",
- "runtime": "org.gnome.Platform",
- "runtime-version": "master",
- "sdk": "org.gnome.Sdk",
- "command": "gtk4-demo",
- "tags": ["devel", "development", "nightly"],
- "desktop-file-name-prefix": "(Development) ",
- "finish-args": [
- "--device=dri",
- "--share=ipc",
- "--socket=x11",
- "--socket=wayland",
- "--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*",
- "--talk-name=ca.desrt.conf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
- ],
- "cleanup": [
- "/include",
- "/lib/pkgconfig", "/share/pkgconfig",
- "/share/aclocal",
- "/man", "/share/man", "/share/gtk-doc",
- "*.la", ".a",
- "/lib/girepository-1.0",
- "/share/gir-1.0",
- "/share/doc"
- ],
- "modules": [
- {
- "name" : "wayland",
- "buildsystem" : "autotools",
- "builddir" : true,
- "config-opts" : [
- "--disable-documentation"
- ],
- "sources" : [
- {
- "type" : "git",
- "url" : "https://github.com/wayland-project/wayland.git"
- }
- ]
- },
- {
- "name": "graphene",
- "buildsystem": "meson",
- "builddir": true,
- "config-opts": [
- "--libdir=/app/lib",
- "-Dtests=false",
- "-Dbenchmarks=false"
- ],
- "sources": [
- {
- "type": "git",
- "url": "https://github.com/ebassi/graphene.git"
- }
- ]
- },
- {
- "name": "gtk",
- "buildsystem": "meson",
- "builddir": true,
- "config-opts": [
- "--libdir=/app/lib"
- ],
- "sources": [
- {
- "type": "git",
- "url": "https://gitlab.gnome.org/GNOME/gtk.git"
- }
- ]
- }
- ]
-}
--- /dev/null
+{
+ "app-id": "org.gtk.Demo4",
+ "runtime": "org.gnome.Platform",
+ "runtime-version": "master",
+ "sdk": "org.gnome.Sdk",
+ "command": "gtk4-demo",
+ "tags": ["devel", "development", "nightly"],
+ "desktop-file-name-prefix": "(Development) ",
+ "finish-args": [
+ "--device=dri",
+ "--share=ipc",
+ "--socket=x11",
+ "--socket=wayland",
+ "--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*",
+ "--talk-name=ca.desrt.conf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+ ],
+ "cleanup": [
+ "/include",
+ "/lib/pkgconfig", "/share/pkgconfig",
+ "/share/aclocal",
+ "/man", "/share/man", "/share/gtk-doc",
+ "*.la", ".a",
+ "/lib/girepository-1.0",
+ "/share/gir-1.0",
+ "/share/doc"
+ ],
+ "modules": [
+ {
+ "name" : "wayland",
+ "buildsystem" : "autotools",
+ "builddir" : true,
+ "config-opts" : [
+ "--disable-documentation"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://github.com/wayland-project/wayland.git"
+ }
+ ]
+ },
+ {
+ "name": "graphene",
+ "buildsystem": "meson",
+ "builddir": true,
+ "config-opts": [
+ "--libdir=/app/lib",
+ "-Dtests=false",
+ "-Dbenchmarks=false"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://github.com/ebassi/graphene.git"
+ }
+ ]
+ },
+ {
+ "name": "gtk",
+ "buildsystem": "meson",
+ "builddir": true,
+ "config-opts": [
+ "--libdir=/app/lib"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/gtk.git"
+ }
+ ]
+ }
+ ]
+}
"comments", "Program to demonstrate GTK functions.",
"authors", authors,
"documenters", documentors,
- "logo-icon-name", "org.gtk.Demo",
+ "logo-icon-name", "org.gtk.Demo4",
"title", "About GTK Code Demos",
NULL);
}
GSettings *settings;
GAction *action;
- settings = g_settings_new ("org.gtk.Demo");
+ settings = g_settings_new ("org.gtk.Demo4");
g_action_map_add_action_entries (G_ACTION_MAP (app),
app_entries, G_N_ELEMENTS (app_entries),
{
GSettings *settings;
- settings = g_settings_new ("org.gtk.Demo");
+ settings = g_settings_new ("org.gtk.Demo4");
g_settings_set (settings, "window-size", "(ii)", win->width, win->height);
g_settings_set_boolean (settings, "maximized", win->maximized);
g_settings_set_boolean (settings, "fullscreen", win->fullscreen);
{
GSettings *settings;
- settings = g_settings_new ("org.gtk.Demo");
+ settings = g_settings_new ("org.gtk.Demo4");
g_settings_get (settings, "window-size", "(ii)", &win->width, &win->height);
win->maximized = g_settings_get_boolean (settings, "maximized");
win->fullscreen = g_settings_get_boolean (settings, "fullscreen");
GtkApplication *app;
app = GTK_APPLICATION (g_object_new (demo_application_get_type (),
- "application-id", "org.gtk.Demo2",
+ "application-id", "org.gtk.Demo4.App",
"flags", G_APPLICATION_HANDLES_OPEN,
NULL));
if (watch == 0)
watch = g_bus_watch_name (G_BUS_TYPE_SESSION,
- "org.gtk.Demo2",
+ "org.gtk.Demo4.App",
0,
on_name_appeared,
on_name_vanished,
else
{
g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL),
- "org.gtk.Demo2",
- "/org/gtk/Demo2",
+ "org.gtk.Demo4.App",
+ "/org/gtk/Demo4/App",
"org.gtk.Actions",
"Activate",
g_variant_new ("(sava{sv})", "quit", NULL, NULL),
+++ /dev/null
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128" version="1.0"><defs><linearGradient id="f"><stop offset="0" stop-color="#ff7800"/><stop offset="1" stop-color="#ed333b"/></linearGradient><linearGradient id="e"><stop offset="0" stop-color="#f5c211"/><stop offset="1" stop-color="#33d17a" stop-opacity=".899"/></linearGradient><linearGradient id="d"><stop offset="0" stop-color="#c0bfbc"/><stop offset=".036" stop-color="#fafaf9"/><stop offset=".088" stop-color="#c0bfbc"/><stop offset=".399" stop-color="#d5d5d3"/><stop offset=".491" stop-color="#eaeae9"/><stop offset=".569" stop-color="#a7a5a1"/><stop offset=".966" stop-color="#a9a7a3"/><stop offset="1" stop-color="#fff"/></linearGradient><linearGradient id="a"><stop offset="0" stop-color="#d5d3cf"/><stop offset="1" stop-color="#f6f5f4"/></linearGradient><linearGradient id="b"><stop offset="0" stop-color="#d5d3cf"/><stop offset="1" stop-color="#949390"/></linearGradient><linearGradient id="c"><stop offset="0" stop-color="#9a9996"/><stop offset="1" stop-color="#77767b"/></linearGradient><linearGradient xlink:href="#d" id="g" x1="-142.049" y1="236.001" x2="-9.951" y2="236.001" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#e" id="h" cx="90.974" cy="263.479" fx="90.974" fy="263.479" r="22.703" gradientTransform="matrix(1.90297 -.05506 .0501 1.73133 -89.25 -176.863)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#f" id="i" cx="61.718" cy="270.719" fx="61.718" fy="270.719" r="22.703" gradientTransform="matrix(2.49049 0 0 2.92132 -91.99 -503.52)" gradientUnits="userSpaceOnUse"/></defs><path transform="translate(123.265 -118.118) scale(.7798)" d="M-75.74 161.438a10.997 10.997 0 0 0-5.758 1.468l-55.053 31.785a10.997 10.997 0 0 0-5.498 9.524v63.57a10.997 10.997 0 0 0 5.498 9.524l55.053 31.785a10.997 10.997 0 0 0 10.996 0l55.053-31.785a10.997 10.997 0 0 0 5.498-9.524v-63.57a10.997 10.997 0 0 0-5.498-9.524l-55.053-31.785a10.997 10.997 0 0 0-5.238-1.469z" style="marker:none" fill="url(#g)"/><path style="marker:none" d="M64.203 3.77a8.575 8.575 0 0 0-4.49 1.146l-42.93 24.786a8.575 8.575 0 0 0-4.288 7.427V86.7a8.575 8.575 0 0 0 4.287 7.426l42.93 24.786a8.575 8.575 0 0 0 8.575 0l42.93-24.786a8.575 8.575 0 0 0 4.288-7.426V37.129a8.575 8.575 0 0 0-4.287-7.427L68.288 4.916a8.575 8.575 0 0 0-4.085-1.145z" fill="#fff"/><path style="marker:none" d="M109.869 33.297L64 59.779 18.131 33.297 64 6.814z" fill="#98c1f1"/><path style="marker:none" d="M66.263 287.505l45.35-25.884.056-52.762-45.406 26.215z" fill="url(#h)" transform="translate(0 -172)"/><path d="M61.718 287.34l-45.35-25.885-.056-52.761 45.406 26.215z" style="marker:none" fill="url(#i)" transform="translate(0 -172)"/></svg>
\ No newline at end of file
--- /dev/null
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128" version="1.0"><defs><linearGradient id="f"><stop offset="0" stop-color="#ff7800"/><stop offset="1" stop-color="#ed333b"/></linearGradient><linearGradient id="e"><stop offset="0" stop-color="#f5c211"/><stop offset="1" stop-color="#33d17a" stop-opacity=".899"/></linearGradient><linearGradient id="d"><stop offset="0" stop-color="#c0bfbc"/><stop offset=".036" stop-color="#fafaf9"/><stop offset=".088" stop-color="#c0bfbc"/><stop offset=".399" stop-color="#d5d5d3"/><stop offset=".491" stop-color="#eaeae9"/><stop offset=".569" stop-color="#a7a5a1"/><stop offset=".966" stop-color="#a9a7a3"/><stop offset="1" stop-color="#fff"/></linearGradient><linearGradient id="a"><stop offset="0" stop-color="#d5d3cf"/><stop offset="1" stop-color="#f6f5f4"/></linearGradient><linearGradient id="b"><stop offset="0" stop-color="#d5d3cf"/><stop offset="1" stop-color="#949390"/></linearGradient><linearGradient id="c"><stop offset="0" stop-color="#9a9996"/><stop offset="1" stop-color="#77767b"/></linearGradient><linearGradient xlink:href="#d" id="g" x1="-142.049" y1="236.001" x2="-9.951" y2="236.001" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#e" id="h" cx="90.974" cy="263.479" fx="90.974" fy="263.479" r="22.703" gradientTransform="matrix(1.90297 -.05506 .0501 1.73133 -89.25 -176.863)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#f" id="i" cx="61.718" cy="270.719" fx="61.718" fy="270.719" r="22.703" gradientTransform="matrix(2.49049 0 0 2.92132 -91.99 -503.52)" gradientUnits="userSpaceOnUse"/></defs><path transform="translate(123.265 -118.118) scale(.7798)" d="M-75.74 161.438a10.997 10.997 0 0 0-5.758 1.468l-55.053 31.785a10.997 10.997 0 0 0-5.498 9.524v63.57a10.997 10.997 0 0 0 5.498 9.524l55.053 31.785a10.997 10.997 0 0 0 10.996 0l55.053-31.785a10.997 10.997 0 0 0 5.498-9.524v-63.57a10.997 10.997 0 0 0-5.498-9.524l-55.053-31.785a10.997 10.997 0 0 0-5.238-1.469z" style="marker:none" fill="url(#g)"/><path style="marker:none" d="M64.203 3.77a8.575 8.575 0 0 0-4.49 1.146l-42.93 24.786a8.575 8.575 0 0 0-4.288 7.427V86.7a8.575 8.575 0 0 0 4.287 7.426l42.93 24.786a8.575 8.575 0 0 0 8.575 0l42.93-24.786a8.575 8.575 0 0 0 4.288-7.426V37.129a8.575 8.575 0 0 0-4.287-7.427L68.288 4.916a8.575 8.575 0 0 0-4.085-1.145z" fill="#fff"/><path style="marker:none" d="M109.869 33.297L64 59.779 18.131 33.297 64 6.814z" fill="#98c1f1"/><path style="marker:none" d="M66.263 287.505l45.35-25.884.056-52.762-45.406 26.215z" fill="url(#h)" transform="translate(0 -172)"/><path d="M61.718 287.34l-45.35-25.885-.056-52.761 45.406 26.215z" style="marker:none" fill="url(#i)" transform="translate(0 -172)"/></svg>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- sodipodi:docname="org.gtk.Demo-symbolic.svg"
- height="16.03125"
- id="svg7384"
- inkscape:version="0.92.4 5da689c313, 2019-01-14"
- version="1.1"
- width="16">
- <metadata
- id="metadata90">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title>Gnome Symbolic Icon Theme</dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <sodipodi:namedview
- inkscape:bbox-paths="true"
- bordercolor="#666666"
- borderopacity="1"
- inkscape:current-layer="layer9"
- inkscape:cx="0.53203442"
- inkscape:cy="9.1822592"
- gridtolerance="10"
- inkscape:guide-bbox="true"
- guidetolerance="10"
- id="namedview88"
- inkscape:object-nodes="false"
- inkscape:object-paths="false"
- objecttolerance="10"
- pagecolor="#555753"
- inkscape:pageopacity="1"
- inkscape:pageshadow="2"
- showborder="true"
- showgrid="false"
- showguides="true"
- inkscape:snap-bbox="true"
- inkscape:snap-bbox-midpoints="false"
- inkscape:snap-global="true"
- inkscape:snap-grids="true"
- inkscape:snap-nodes="true"
- inkscape:snap-others="false"
- inkscape:snap-to-guides="true"
- inkscape:window-height="1375"
- inkscape:window-maximized="1"
- inkscape:window-width="2560"
- inkscape:window-x="0"
- inkscape:window-y="27"
- inkscape:zoom="1">
- <inkscape:grid
- empspacing="2"
- enabled="true"
- id="grid4866"
- originx="-203"
- originy="-251.96875"
- snapvisiblegridlinesonly="true"
- spacingx="1"
- spacingy="1"
- type="xygrid"
- visible="true" />
- </sodipodi:namedview>
- <title
- id="title9167">Gnome Symbolic Icon Theme</title>
- <defs
- id="defs7386">
- <linearGradient
- id="linearGradient7212"
- osb:paint="solid">
- <stop
- id="stop7214"
- offset="0"
- style="stop-color:#000000;stop-opacity:1;" />
- </linearGradient>
- </defs>
- <g
- inkscape:groupmode="layer"
- id="layer9"
- inkscape:label="apps"
- style="display:inline"
- transform="translate(-444.0002,35)">
- <path
- style="display:inline;opacity:0.3;vector-effect:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
- d="m 457.97232,-31.569556 -5.96212,3.44224 -5.96215,-3.44224 v 0 l 5.96215,-3.44226 z"
- id="path870-6"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccccc" />
- <path
- sodipodi:nodetypes="cccccc"
- inkscape:connector-curvature="0"
- id="path886-9"
- d="m 450.98519,-19.648086 -5.99273,-3.42041 -0.007,-6.97219 v 0 l 6.00018,3.4642 z"
- style="display:inline;opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
- <path
- style="display:inline;opacity:0.60100002;vector-effect:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
- d="m 452.98577,-19.648086 5.99273,-3.42041 0.007,-6.97219 v 0 l -6.00018,3.4642 z"
- id="path931"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccccc" />
- </g>
-</svg>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ sodipodi:docname="org.gtk.Demo4-symbolic.svg"
+ height="16.03125"
+ id="svg7384"
+ inkscape:version="0.92.4 5da689c313, 2019-01-14"
+ version="1.1"
+ width="16">
+ <metadata
+ id="metadata90">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview
+ inkscape:bbox-paths="true"
+ bordercolor="#666666"
+ borderopacity="1"
+ inkscape:current-layer="layer9"
+ inkscape:cx="0.53203442"
+ inkscape:cy="9.1822592"
+ gridtolerance="10"
+ inkscape:guide-bbox="true"
+ guidetolerance="10"
+ id="namedview88"
+ inkscape:object-nodes="false"
+ inkscape:object-paths="false"
+ objecttolerance="10"
+ pagecolor="#555753"
+ inkscape:pageopacity="1"
+ inkscape:pageshadow="2"
+ showborder="true"
+ showgrid="false"
+ showguides="true"
+ inkscape:snap-bbox="true"
+ inkscape:snap-bbox-midpoints="false"
+ inkscape:snap-global="true"
+ inkscape:snap-grids="true"
+ inkscape:snap-nodes="true"
+ inkscape:snap-others="false"
+ inkscape:snap-to-guides="true"
+ inkscape:window-height="1375"
+ inkscape:window-maximized="1"
+ inkscape:window-width="2560"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:zoom="1">
+ <inkscape:grid
+ empspacing="2"
+ enabled="true"
+ id="grid4866"
+ originx="-203"
+ originy="-251.96875"
+ snapvisiblegridlinesonly="true"
+ spacingx="1"
+ spacingy="1"
+ type="xygrid"
+ visible="true" />
+ </sodipodi:namedview>
+ <title
+ id="title9167">Gnome Symbolic Icon Theme</title>
+ <defs
+ id="defs7386">
+ <linearGradient
+ id="linearGradient7212"
+ osb:paint="solid">
+ <stop
+ id="stop7214"
+ offset="0"
+ style="stop-color:#000000;stop-opacity:1;" />
+ </linearGradient>
+ </defs>
+ <g
+ inkscape:groupmode="layer"
+ id="layer9"
+ inkscape:label="apps"
+ style="display:inline"
+ transform="translate(-444.0002,35)">
+ <path
+ style="display:inline;opacity:0.3;vector-effect:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+ d="m 457.97232,-31.569556 -5.96212,3.44224 -5.96215,-3.44224 v 0 l 5.96215,-3.44226 z"
+ id="path870-6"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="cccccc" />
+ <path
+ sodipodi:nodetypes="cccccc"
+ inkscape:connector-curvature="0"
+ id="path886-9"
+ d="m 450.98519,-19.648086 -5.99273,-3.42041 -0.007,-6.97219 v 0 l 6.00018,3.4642 z"
+ style="display:inline;opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+ <path
+ style="display:inline;opacity:0.60100002;vector-effect:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+ d="m 452.98577,-19.648086 5.99273,-3.42041 0.007,-6.97219 v 0 l -6.00018,3.4642 z"
+ id="path931"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="cccccc" />
+ </g>
+</svg>
<file>demotaggedentry.c</file>
<file>demotaggedentry.h</file>
</gresource>
- <gresource prefix="/org/gtk/Demo">
+ <gresource prefix="/org/gtk/Demo4">
<file>icons/16x16/actions/application-exit.png</file>
<file>icons/16x16/actions/document-new.png</file>
<file>icons/16x16/actions/document-open.png</file>
"website", "http://www.gtk.org",
"comments", "Program to demonstrate GTK widgets",
"authors", authors,
- "logo-icon-name", "org.gtk.Demo",
+ "logo-icon-name", "org.gtk.Demo4",
"title", "About GTK Demo",
NULL);
}
}
/* -- End of hack -- */
- app = gtk_application_new ("org.gtk.Demo", G_APPLICATION_NON_UNIQUE|G_APPLICATION_HANDLES_COMMAND_LINE);
+ app = gtk_application_new ("org.gtk.Demo4", G_APPLICATION_NON_UNIQUE|G_APPLICATION_HANDLES_COMMAND_LINE);
g_action_map_add_action_entries (G_ACTION_MAP (app),
app_entries, G_N_ELEMENTS (app_entries),
endforeach
# desktop file
-install_data('org.gtk.Demo.desktop', install_dir: gtk_applicationsdir)
+install_data('org.gtk.Demo4.desktop', install_dir: gtk_applicationsdir)
# GSettings
-install_data('org.gtk.Demo.gschema.xml', install_dir: gtk_schemasdir)
+install_data('org.gtk.Demo4.gschema.xml', install_dir: gtk_schemasdir)
gnome.compile_schemas()
# appdata
-install_data('org.gtk.Demo.appdata.xml', install_dir: gtk_appdatadir)
+install_data('org.gtk.Demo4.appdata.xml', install_dir: gtk_appdatadir)
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<component type="desktop">
- <id>org.gtk.Demo.desktop</id>
- <metadata_license>CC0-1.0</metadata_license>
- <project_license>LGPL-2.0+</project_license>
- <name>GTK Demo</name>
- <summary>Program to demonstrate GTK functions</summary>
- <description>
- <p>
- GTK Demo is a collection of examples that demonstrate the major
- features of the GTK toolkit.
- </p>
- </description>
- <screenshots>
- <screenshot>
- <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo1.png</image>
- <caption>The main window</caption>
- </screenshot>
- <screenshot>
- <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo2.png</image>
- <caption>An example</caption>
- </screenshot>
- </screenshots>
- <kudos>
- <kudo>AppMenu</kudo>
- <kudo>HiDpiIcon</kudo>
- <kudo>ModernToolkit</kudo>
- </kudos>
- <url type="homepage">https://www.gtk.org</url>
- <translation type="gettext">gtk-4.0</translation>
- <update_contact>matthias.clasen_at_gmail.com</update_contact>
- <developer_name>Matthias Clasen and others</developer_name>
- <releases>
- <release version="3.94.0" date="2018-06-25">
- <description>
- <p>A new developers snapshot towards GTK 4.0.</p>
- </description>
- </release>
- </releases>
-</component>
+++ /dev/null
-[Desktop Entry]
-Name=GTK Demo
-Comment=GTK code examples and demonstrations
-Exec=gtk4-demo
-Icon=org.gtk.Demo
-Terminal=false
-Type=Application
-StartupNotify=true
-Categories=Development;GTK;
-NoDisplay=true
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-
-<schemalist>
-
- <enum id='org.gtk.Demo.Color'>
- <value nick='red' value='0'/>
- <value nick='green' value='1'/>
- <value nick='blue' value='2'/>
- </enum>
-
- <schema id='org.gtk.Demo' path='/org/gtk/Demo/'>
- <key name='color' enum='org.gtk.Demo.Color'>
- <default>'red'</default>
- </key>
- <key name='window-size' type='(ii)'>
- <default>(-1, -1)</default>
- </key>
- <key name='maximized' type='b'>
- <default>false</default>
- </key>
- <key name='fullscreen' type='b'>
- <default>false</default>
- </key>
- </schema>
-
-</schemalist>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>org.gtk.Demo4.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>LGPL-2.0+</project_license>
+ <name>GTK Demo</name>
+ <summary>Program to demonstrate GTK functions</summary>
+ <description>
+ <p>
+ GTK Demo is a collection of examples that demonstrate the major
+ features of the GTK toolkit.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo1.png</image>
+ <caption>The main window</caption>
+ </screenshot>
+ <screenshot>
+ <image>https://static.gnome.org/appdata/gtk4-demo/gtk-demo2.png</image>
+ <caption>An example</caption>
+ </screenshot>
+ </screenshots>
+ <kudos>
+ <kudo>AppMenu</kudo>
+ <kudo>HiDpiIcon</kudo>
+ <kudo>ModernToolkit</kudo>
+ </kudos>
+ <url type="homepage">https://www.gtk.org</url>
+ <translation type="gettext">gtk-4.0</translation>
+ <update_contact>matthias.clasen_at_gmail.com</update_contact>
+ <developer_name>Matthias Clasen and others</developer_name>
+ <releases>
+ <release version="3.94.0" date="2018-06-25">
+ <description>
+ <p>A new developers snapshot towards GTK 4.0.</p>
+ </description>
+ </release>
+ </releases>
+</component>
--- /dev/null
+[Desktop Entry]
+Name=GTK Demo
+Comment=GTK code examples and demonstrations
+Exec=gtk4-demo
+Icon=org.gtk.Demo4
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=Development;GTK;
+NoDisplay=true
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<schemalist>
+
+ <enum id='org.gtk.Demo4.Color'>
+ <value nick='red' value='0'/>
+ <value nick='green' value='1'/>
+ <value nick='blue' value='2'/>
+ </enum>
+
+ <schema id='org.gtk.Demo4' path='/org/gtk/Demo4/'>
+ <key name='color' enum='org.gtk.Demo4.Color'>
+ <default>'red'</default>
+ </key>
+ <key name='window-size' type='(ii)'>
+ <default>(-1, -1)</default>
+ </key>
+ <key name='maximized' type='b'>
+ <default>false</default>
+ </key>
+ <key name='fullscreen' type='b'>
+ <default>false</default>
+ </key>
+ </schema>
+
+</schemalist>
{
if (i == 0)
{
- widget = gtk_image_new_from_icon_name ("org.gtk.Demo");
+ widget = gtk_image_new_from_icon_name ("org.gtk.Demo4");
gtk_image_set_pixel_size (GTK_IMAGE (widget), 256);
}
else
<object class="GtkImage">
<property name="margin-top">20</property>
<property name="margin-bottom">20</property>
- <property name="icon-name">org.gtk.Demo</property>
+ <property name="icon-name">org.gtk.Demo4</property>
</object>
</property>
</object>